home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / control / main.cs < prev   
Text File  |  2006-09-24  |  841b  |  29 lines

  1. //------------------------------------------------------------------------
  2. // control/main.cs
  3. // Copyright (c) 2003, 2006  Kenneth C. Finney
  4. //------------------------------------------------------------------------
  5. Exec("./client/presets.cs");
  6. Exec("./server/presets.cs");
  7.  
  8. package control {
  9. function OnStart()
  10. {
  11.    Parent::OnStart();
  12.    Echo("\n++++++++++++ Initializing control module ++++++++++++");
  13.    Exec("./client/misc/sndprofiles.cs"); 
  14.    Exec("./client/initialize.cs");
  15.    Exec("./server/initialize.cs");
  16.    InitializeServer(); // Prepare the server-specific aspects
  17.    if ($Server::Dedicated)
  18.       InitializeDedicatedServer();
  19.    else
  20.       InitializeClient();
  21.  
  22. }
  23. function OnExit()
  24. {
  25.    Parent::onExit();
  26. }
  27. }; // Client package
  28. ActivatePackage(control); // Tell TGE to make the client package active
  29.